package com.trafficsys.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 行驶证
 */
@Data//lombok生成get set方法
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class TravelCard {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String travelCarId;//行驶证号
    private String carNo;//车牌号
    private String carClazz;//车俩类型
    private String cardId;//行驶证所有人
    private String userNature;//使用性质
    private String brandModel;//品牌型号
    private String vin;//车辆识别代号
    private String engineNo;//发动机号
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp invalidDate;//失效日期
    private String fileNo;//档案号
    private String state;//行驶证状态
}
